/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cadi.games;

import com.cadi.aux.ItemEasySuper;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JLayeredPane;

/**
 *
 * @author ApoZuniga
 */
public class EasySuper extends ItemEasySuper {
    private JLabel background;
    private JLabel imageInstruction;
    public EasySuper() {
    }
    
    public EasySuper(int level) {
        super();
        voice = java.applet.Applet.newAudioClip(getClass().getResource("/resources/eligePago.wav"));
        voice.play();
        character.setBounds(5, 440, 149, 300);
        playVoice.setBounds(135, 550, 50, 50);
        imageInstruction = new JLabel(new ImageIcon(getClass().getResource("/resources/globoSuper.png")));
        imageInstruction.setBounds(140, 390, 200, 162);
        this.container.add(imageInstruction, JLayeredPane.PALETTE_LAYER); 
        switch (level) {
            case 1:
                instruction.setText("El total que debes pagar por el queso es: ");
                requiredTotal.setText("$ 3.50");
                product.setIcon(new ImageIcon(getClass().getResource("/resources/compra_1.png")));
                total = 3.5;
                break;
            case 2:
                instruction.setText("El total que debes pagar por el pan es: ");
                requiredTotal.setText("$ 6.00");
                product.setIcon(new ImageIcon(getClass().getResource("/resources/compra_2.png")));
                product.setBounds(50, 80, 170, 134);
                total = 6;
                break;
            case 3:
                instruction.setText("El total que debes pagar por el jamón es: ");
                requiredTotal.setText("$ 7.50");
                product.setIcon(new ImageIcon(getClass().getResource("/resources/compra_3.png")));
                product.setBounds(50, 80, 170, 99);
                total = 7.5;
                break;
            case 4:
                instruction.setText("El total que debes pagar por el jabón es: ");
                requiredTotal.setText("$ 8.50");
                product.setIcon(new ImageIcon(getClass().getResource("/resources/compra_4.png")));
                product.setBounds(50, 80, 162, 170);
                total = 8.5;
                break;
            case 5:
                instruction.setText("El total que debes pagar por el jugo es: ");
                requiredTotal.setText("$ 11.50");
                product.setIcon(new ImageIcon(getClass().getResource("/resources/compra_5.png")));
                product.setBounds(50, 80, 162, 170);
                total = 11.5;
                break;
            case 6:
                instruction.setText("El total que debes pagar por el pan tostado es: ");
                requiredTotal.setText("$ 9.50");
                product.setIcon(new ImageIcon(getClass().getResource("/resources/compra_6.png")));
                product.setBounds(50, 80, 170, 134);
                total = 9.5;
                break;
            case 7:
                instruction.setText("El total que debes pagar por el café es: ");
                requiredTotal.setText("$ 6.50");
                product.setIcon(new ImageIcon(getClass().getResource("/resources/compra_7.png")));
                product.setBounds(50, 80, 170, 170);
                total = 6.5;
                break;
            case 8:
                instruction.setText("El total que debes pagar por las donas es: ");
                requiredTotal.setText("$ 5.50");
                product.setIcon(new ImageIcon(getClass().getResource("/resources/compra_8.png")));
                product.setBounds(50, 80, 170, 170);
                total = 5.5;
                break;
        }
         background = new JLabel(new ImageIcon(getClass().getResource("/resources/fondo4.png")));
        background.setBounds(0, 0, 1280,800);
        container.add(background, JLayeredPane.PALETTE_LAYER);
       
        window.repaint();
    }
}
